{%extends 'reportes/reportes_base.html'%}
{%load humanize%}
{%block extrahead%}
    <title>Relacion de Movimientos Bancarios</title>
{%endblock%}

{%block titlecontent%}
<h2>Relacion de Movimientos Bancarios</h2>
{%endblock%}

{%block maincontent%}
<table class="report_list">
    <tr>
        <th>Cuenta</th>
        <th>Refer.</th>
        <th>Concepto</th>
        {%if gran_tot.base_0 != 0%}<th>Base 0%</th>{%endif%}
        {%if gran_tot.sub_11 != 0%}<th>Sub. 11%</th>{%endif%}
        {%if gran_tot.sub_16 != 0%}<th>Sub. 16%</th>{%endif%}
        {%if gran_tot.descuento != 0%}<th>Desc.</th>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<th>IVA Desc.</th>{%endif%}
        {%if gran_tot.iva_11 != 0%}<th>IVA 11%</th>{%endif%}
        {%if gran_tot.iva_16 != 0%}<th>IVA 16%</th>{%endif%}
        {%if gran_tot.ret_iva != 0%}<th>Ret. IVA</th>{%endif%}
        {%if gran_tot.ret_isr != 0%}<th>Ret. ISR</th>{%endif%}
        <th>Importe</th>
    </tr>
    {%for res in resumen%}
    <tr>
        <td colspan="8" class="prov_info">{{res.proveedor.nombre}}</td>
        <td colspan="1" class="prov_info">{{res.proveedor.rfc}}</td>
    </tr>
    {%for concepto in res.conceptos%}
    <tr class="conceptos">
        <td class="small">{{concepto.cheque.cuenta}}</td>
        <td>{{concepto.cheque.referencia}} {% if concepto.referencia%} - {{concepto.referencia}}{%endif%}</td>
        <td>{{concepto.get_tipo_display}}</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{{concepto.get_base_0|intcomma}}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{{concepto.get_sub_11|intcomma}}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{{concepto.get_sub_16|intcomma}}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{{concepto.get_desc|intcomma}}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{{concepto.get_iva_desc|intcomma}}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{{concepto.get_iva_11|intcomma}}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{{concepto.get_iva_16|intcomma}}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if concepto.ret_iva != 0%}{{concepto.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if concepto.ret_isr != 0%}{{concepto.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{concepto.bancos|intcomma}}</td>
    </tr>
    {%endfor%}
    {%if res.count > 1%}
    <tr class="parcial">
        <td colspan="3">TOTALES</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{%if res.base_0 != 0%}{{res.base_0|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{%if res.sub_11 != 0%}{{res.sub_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{%if res.sub_16 != 0%}{{res.sub_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{%if res.descuento != 0%}{{res.descuento|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{%if res.descuento_iva != 0%}{{res.descuento_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{%if res.iva_11 != 0%}{{res.iva_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{%if res.iva_16 != 0%}{{res.iva_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if res.ret_iva != 0%}{{res.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if res.ret_isr != 0%}{{res.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{res.importe|intcomma}}</td>
    </tr>
    {%endif%}
    {%endfor%}
<tr>
    <td></td>
</tr>
<tr>
    <td></td>
</tr>
    <tr class="parcial">
        <td colspan="3">TOTAL ACREDITABLE</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{%if totales.base_0 != 0%}{{totales.base_0|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{%if totales.sub_11 != 0%}{{totales.sub_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{%if totales.sub_16 != 0%}{{totales.sub_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{%if totales.descuento != 0%}{{totales.descuento|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{%if totales.descuento_iva != 0%}{{totales.descuento_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{%if totales.iva_11 != 0%}{{totales.iva_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{%if totales.iva_16 != 0%}{{totales.iva_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if totales.ret_iva != 0%}{{totales.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if totales.ret_isr != 0%}{{totales.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{totales.importe|intcomma}}</td>
    </tr>

<tr>
    <td></td>
</tr>

{%if totales_g.importe > 0%}
<tr>
    <td colspan="13" class="global_info">EN PROVEEDOR GLOBAL</td>
</tr>

    {%for glob in resumen_g%}
    <tr>
        <td colspan="8" class="global_info">{{glob.proveedor.nombre}}</td>        
        <td colspan="1" class="global_info">{{glob.proveedor.rfc}}</td>
    </tr>
    {%for concepto in glob.conceptos%}
    <tr class="conceptos">
        <td class="small">{{concepto.cheque.cuenta}}</td>
        <td>{{concepto.cheque.referencia}} {% if concepto.referencia%} - {{concepto.referencia}}{%endif%}</td>
        <td>{{concepto.get_tipo_display}}</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{{concepto.get_base_0|intcomma}}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{{concepto.get_sub_11|intcomma}}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{{concepto.get_sub_16|intcomma}}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{{concepto.get_desc|intcomma}}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{{concepto.get_iva_desc|intcomma}}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{{concepto.get_iva_11|intcomma}}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{{concepto.get_iva_16|intcomma}}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if concepto.ret_iva != 0%}{{concepto.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if concepto.ret_isr != 0%}{{concepto.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{concepto.bancos|intcomma}}</td>
    </tr>
    {%endfor%}
    {%if glob.count > 1%}
    <tr class="parcial">
        <td colspan="3">TOTALES</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{%if glob.base_0 != 0%}{{glob.base_0|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{%if glob.sub_11 != 0%}{{glob.sub_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{%if glob.sub_16 != 0%}{{glob.sub_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{%if glob.descuento != 0%}{{glob.descuento|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{%if glob.descuento_iva != 0%}{{glob.descuento_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{%if glob.iva_11 != 0%}{{glob.iva_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{%if glob.iva_16 != 0%}{{glob.iva_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if glob.ret_iva != 0%}{{glob.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if glob.ret_isr != 0%}{{glob.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{glob.importe|intcomma}}</td>
    </tr>
    {%endif%}
    {%endfor%}

<tr>
    <td></td>
</tr>
<tr>
    <td></td>
</tr>
    <tr class="parcial">
        <td colspan="3">TOTAL EN PROVEEDOR GLOBAL</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{%if totales_g.base_0 != 0%}{{totales_g.base_0|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{%if totales_g.sub_11 != 0%}{{totales_g.sub_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{%if totales_g.sub_16 != 0%}{{totales_g.sub_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{%if totales_g.descuento != 0%}{{totales_g.descuento|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{%if totales_g.descuento_iva != 0%}{{totales_g.descuento_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{%if totales_g.iva_11 != 0%}{{totales_g.iva_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{%if totales_g.iva_16 != 0%}{{totales_g.iva_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if totales_g.ret_iva != 0%}{{totales_g.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if totales_g.ret_isr != 0%}{{totales_g.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{totales_g.importe|intcomma}}</td>
    </tr>
{%endif%}
<tr>
    <td></td>
</tr>
<tr>
    <td></td>
</tr>


{%if tot_exc.count > 0%}
    <tr>
        <td colspan="11"><br><br></td>
    </tr>
    {%for excluido in excluidos%}
    <tr class="conceptos">
        <td class="small">{{excluido.cheque.cuenta}}</td>
        <td>{{excluido.cheque.referencia}}</td>
        <td>{{excluido.get_tipo_display}}</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{{excluido.get_base_0|intcomma}}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{{excluido.get_sub_11|intcomma}}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{{excluido.get_sub_16|intcomma}}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{{excluido.get_desc|intcomma}}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{{excluido.get_iva_desc|intcomma}}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{{excluido.get_iva_11|intcomma}}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{{excluido.get_iva_16|intcomma}}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if excluido.ret_iva != 0%}{{excluido.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if excluido.ret_isr != 0%}{{excluido.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{excluido.bancos|intcomma}}</td>
    </tr>
    {%endfor%}

    <tr class="parcial">
        <td colspan="3">TOTAL NO ACREDITABLE</td>
        {%if gran_tot.base_0 != 0%}<td class="number">{%if tot_exc.base_0 != 0%}{{tot_exc.base_0|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_11 != 0%}<td class="number">{%if tot_exc.sub_11 != 0%}{{tot_exc.sub_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.sub_16 != 0%}<td class="number">{%if tot_exc.sub_16 != 0%}{{tot_exc.sub_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento != 0%}<td class="number">{%if tot_exc.descuento != 0%}{{tot_exc.descuento|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.descuento_iva != 0%}<td class="number">{%if tot_exc.descuento_iva != 0%}{{tot_exc.descuento_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_11 != 0%}<td class="number">{%if tot_exc.iva_11 != 0%}{{tot_exc.iva_11|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.iva_16 != 0%}<td class="number">{%if tot_exc.iva_16 != 0%}{{tot_exc.iva_16|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_iva != 0%}<td class="number">{%if tot_exc.ret_iva != 0%}{{tot_exc.ret_iva|intcomma}}{%endif%}</td>{%endif%}
        {%if gran_tot.ret_isr != 0%}<td class="number">{%if tot_exc.ret_isr != 0%}{{tot_exc.ret_isr|intcomma}}{%endif%}</td>{%endif%}
        <td class="number">{{tot_exc.importe|intcomma}}</td>
    </tr>
{%endif%}

    <tr>
        <td colspan="12"><br><br></td>
    </tr>

    <tr class="parcial">
        <td colspan="3">GRAN TOTAL</td>
        {%if gran_tot.base_0 != 0%}
        <td class="number">{%if gran_tot.base_0 != 0%}{{gran_tot.base_0|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.sub_11 != 0%}
        <td class="number">{%if gran_tot.sub_11 != 0%}{{gran_tot.sub_11|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.sub_16 != 0%}
        <td class="number">{%if gran_tot.sub_16 != 0%}{{gran_tot.sub_16|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.descuento != 0%}
        <td class="number">{%if gran_tot.descuento != 0%}{{gran_tot.descuento|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.descuento_iva != 0%}
        <td class="number">{%if gran_tot.descuento_iva != 0%}{{gran_tot.descuento_iva|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.iva_11 != 0%}
        <td class="number">{%if gran_tot.iva_11 != 0%}{{gran_tot.iva_11|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.iva_16 != 0%}
        <td class="number">{%if gran_tot.iva_16 != 0%}{{gran_tot.iva_16|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.ret_iva != 0%}
        <td class="number">{%if gran_tot.ret_iva != 0%}{{gran_tot.ret_iva|intcomma}}{%endif%}</td>
        {%endif%}
        {%if gran_tot.ret_isr != 0%}
        <td class="number">{%if gran_tot.ret_isr != 0%}{{gran_tot.ret_isr|intcomma}}{%endif%}</td>
        {%endif%}
        <td class="number">{{gran_tot.importe|intcomma}}</td>
    </tr>


</table>

<br>
<br>

<table class="object_list">
    <tr>
        <th>Concepto</th>
        <th>Base 0</th>
        <th>Subtotal 11%</th>
        <th>Subtotal 16%</th>
        <th>IVA 11%</th>
        <th>IVA 16%</th>
        <th>Desc.</th>
        <th>Desc. IVA</th>
        <th>SUBTOTAL</th>
        <th class="bluef">TOTAL</th>
    </tr>
    {%if tipos.compras.total != 0%}
    <tr>
        <th>COMPRAS</th>
        <td class="number">{{tipos.compras.base_0|intcomma}}</td>
        <td class="number">{{tipos.compras.sub_11|intcomma}}</td>
        <td class="number">{{tipos.compras.sub_16|intcomma}}</td>
        <td class="number">{{tipos.compras.iva_11|intcomma}}</td>
        <td class="number">{{tipos.compras.iva_16|intcomma}}</td>
        <td class="number">{{tipos.compras.desc|intcomma}}</td>
        <td class="number">{{tipos.compras.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.compras.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.compras.total|intcomma}}</td>
    </tr>
    {%endif%}

    {%if tipos.gastos.total != 0%}
    <tr>
        <th>GASTOS</th>
        <td class="number">{{tipos.gastos.base_0|intcomma}}</td>
        <td class="number">{{tipos.gastos.sub_11|intcomma}}</td>
        <td class="number">{{tipos.gastos.sub_16|intcomma}}</td>
        <td class="number">{{tipos.gastos.iva_11|intcomma}}</td>
        <td class="number">{{tipos.gastos.iva_16|intcomma}}</td>
        <td class="number">{{tipos.gastos.desc|intcomma}}</td>
        <td class="number">{{tipos.gastos.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.gastos.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.gastos.total|intcomma}}</td>
    </tr>
    {%endif%}
    {%if tipos.honorarios.total != 0%}
    <tr>
        <th>HONORARIOS</th>
        <td class="number">{{tipos.honorarios.base_0|intcomma}}</td>
        <td class="number">{{tipos.honorarios.sub_11|intcomma}}</td>
        <td class="number">{{tipos.honorarios.sub_16|intcomma}}</td>
        <td class="number">{{tipos.honorarios.iva_11|intcomma}}</td>
        <td class="number">{{tipos.honorarios.iva_16|intcomma}}</td>
        <td class="number">{{tipos.honorarios.desc|intcomma}}</td>
        <td class="number">{{tipos.honorarios.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.honorarios.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.honorarios.total|intcomma}}</td>
    </tr>
    {%endif%}
    {%if tipos.renta.total != 0%}
    <tr>
        <th>RENTA</th>
        <td class="number">{{tipos.renta.base_0|intcomma}}</td>
        <td class="number">{{tipos.renta.sub_11|intcomma}}</td>
        <td class="number">{{tipos.renta.sub_16|intcomma}}</td>
        <td class="number">{{tipos.renta.iva_11|intcomma}}</td>
        <td class="number">{{tipos.renta.iva_16|intcomma}}</td>
        <td class="number">{{tipos.renta.desc|intcomma}}</td>
        <td class="number">{{tipos.renta.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.renta.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.renta.total|intcomma}}</td>
    </tr>
    {%endif%}
    {%if tipos.impuestos.total != 0%}
    <tr>
        <th>IMPUESTOS</th>
        <td class="number">{{tipos.impuestos.base_0|intcomma}}</td>
        <td class="number">{{tipos.impuestos.sub_11|intcomma}}</td>
        <td class="number">{{tipos.impuestos.sub_16|intcomma}}</td>
        <td class="number">{{tipos.impuestos.iva_11|intcomma}}</td>
        <td class="number">{{tipos.impuestos.iva_16|intcomma}}</td>
        <td class="number">{{tipos.impuestos.desc|intcomma}}</td>
        <td class="number">{{tipos.impuestos.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.impuestos.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.impuestos.total|intcomma}}</td>
    </tr>
    {%endif%}
    {%if tipos.sueldos.total != 0%}
    <tr>
        <th>SUELDOS</th>
        <td class="number">{{tipos.sueldos.base_0|intcomma}}</td>
        <td class="number">{{tipos.sueldos.sub_11|intcomma}}</td>
        <td class="number">{{tipos.sueldos.sub_16|intcomma}}</td>
        <td class="number">{{tipos.sueldos.iva_11|intcomma}}</td>
        <td class="number">{{tipos.sueldos.iva_16|intcomma}}</td>
        <td class="number">{{tipos.sueldos.desc|intcomma}}</td>
        <td class="number">{{tipos.sueldos.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.sueldos.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.sueldos.total|intcomma}}</td>
    </tr>
    {%endif%}

    {%if tipos.imss.total != 0%}
    <tr>
        <th>IMSS-INF-RCV</th>
        <td class="number">{{tipos.imss.base_0|intcomma}}</td>
        <td class="number">{{tipos.imss.sub_11|intcomma}}</td>
        <td class="number">{{tipos.imss.sub_16|intcomma}}</td>
        <td class="number">{{tipos.imss.iva_11|intcomma}}</td>
        <td class="number">{{tipos.imss.iva_16|intcomma}}</td>
        <td class="number">{{tipos.imss.desc|intcomma}}</td>
        <td class="number">{{tipos.imss.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.imss.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.imss.total|intcomma}}</td>
    </tr>
    {%endif%}


    {%if tipos.comisiones.total != 0%}
    <tr>
        <th>COMISIONES</th>
        <td class="number">{{tipos.comisiones.base_0|intcomma}}</td>
        <td class="number">{{tipos.comisiones.sub_11|intcomma}}</td>
        <td class="number">{{tipos.comisiones.sub_16|intcomma}}</td>
        <td class="number">{{tipos.comisiones.iva_11|intcomma}}</td>
        <td class="number">{{tipos.comisiones.iva_16|intcomma}}</td>
        <td class="number">{{tipos.comisiones.desc|intcomma}}</td>
        <td class="number">{{tipos.comisiones.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.comisiones.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.comisiones.total|intcomma}}</td>
    </tr>
    {%endif%}

    {%if tipos.mov_bancarios.total != 0%}
    <tr>
        <th>MOV. BANCARIOS</th>
        <td class="number">{{tipos.mov_bancarios.base_0|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.sub_11|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.sub_16|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.iva_11|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.iva_16|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.desc|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.mov_bancarios.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.mov_bancarios.total|intcomma}}</td>
    </tr>
    {%endif%}
    {%if tipos.act_fijo.total != 0%}
    <tr>
        <th>ACT. FIJO</th>
        <td class="number">{{tipos.act_fijo.base_0|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.sub_11|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.sub_16|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.iva_11|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.iva_16|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.desc|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.act_fijo.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.act_fijo.total|intcomma}}</td>
    </tr>
    {%endif%}
    {%if tipos.otros.total != 0%}
    <tr>
        <th>OTROS</th>
        <td class="number">{{tipos.otros.base_0|intcomma}}</td>
        <td class="number">{{tipos.otros.sub_11|intcomma}}</td>
        <td class="number">{{tipos.otros.sub_16|intcomma}}</td>
        <td class="number">{{tipos.otros.iva_11|intcomma}}</td>
        <td class="number">{{tipos.otros.iva_16|intcomma}}</td>
        <td class="number">{{tipos.otros.desc|intcomma}}</td>
        <td class="number">{{tipos.otros.desc_iva|intcomma}}</td>
        <td class="number">{{tipos.otros.subtotal|intcomma}}</td>
        <td class="bluef number">{{tipos.otros.total|intcomma}}</td>
    </tr>
    {%endif%}
    <tr>
        <th>TOTALES</th>
        <th class="number">{{tipos.t_base0|intcomma}}</th>
        <th class="number">{{tipos.t_sub11|intcomma}}</th>
        <th class="number">{{tipos.t_sub16|intcomma}}</th>
        <th class="number">{{tipos.t_iva11|intcomma}}</th>
        <th class="number">{{tipos.t_iva16|intcomma}}</th>
        <th class="number">{{tipos.t_desc|intcomma}}</th>
        <th class="number">{{tipos.t_desc_iva|intcomma}}</th>
        <th class="number">{{tipos.t_subtotal|intcomma}}</th>
        <th class="number">{{tipos.t_total|intcomma}}</th>
    </tr>

</table>

<br>
<br>

{%endblock%}
